﻿<%@ Page Title="News Week| Archive" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true"
    CodeFile="Archive.aspx.cs" Inherits="Archive" EnableViewState="true" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link type="text/css" href="/contents/ui-lightness/jquery-ui-1.8.16.custom.css" rel="stylesheet" />
    <%--<script type="text/javascript" src="/contents/jquery-1.6.2.min.js"></script>--%>
    <script type="text/javascript" src="/contents/jquery-ui-1.8.16.custom.min.js"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div style="text-align: left; padding: 0px 15px;">
        <h2>
            Archive</h2>
        <br />
        

        <asp:Repeater runat="server" ID="NewsThumbnails">
            <HeaderTemplate>
                <ul class="archive-list-parent">
            </HeaderTemplate>
            <ItemTemplate>

            <li>
            
                <h3 class="archive-list-heading">
                    <asp:Literal runat="server" id="ArchiveHeadingLiteral" Text='<%# Eval("Key")%>'></asp:Literal>
                </h3>
            
                <asp:Repeater runat="server" ID="NewsThumbnailsDetails" DataSource='<%# Eval("Values") %>'>
                    <HeaderTemplate>
                        <ul class="archive-list">
                    </HeaderTemplate>
                    <ItemTemplate>
                        <li><a id="news_image" class="news-thumbnail" runat="server" href='<%# Eval("Url")%>'>
                            <asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("FarmanImage") %>' />
                        </a><br /><a id="A1" runat="server" href='<%# Eval("Url")%>'><span class="magazine-date"><asp:Literal runat="server" ID="MagazineDateLiteral" Text='<%# Bind("FromDate", "{0:MMM dd}") %>'></asp:Literal> - <asp:Literal runat="server" ID="Literal1" Text='<%# Bind("CurrentDate", "{0:MMM dd}") %>'></asp:Literal>, <asp:Literal runat="server" ID="Literal2" Text='<%# Bind("CurrentDate", "{0:yyyy}") %>'></asp:Literal></span></a></li>
                    </ItemTemplate>
                    <FooterTemplate>
                        </ul>
                    </FooterTemplate>
                </asp:Repeater>

            </li>

        </ItemTemplate>
            <FooterTemplate>
                </ul>
            </FooterTemplate>
        </asp:Repeater>

    </div>
</asp:Content>
